Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda execute stack trace should be not formatted with extra space #1615

Merged

Conversation

taehopark32
Copy link
Contributor

SUMMARY

Fixes #1497

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/modules/lambda_execute.py

ADDITIONAL INFORMATION

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/66836961ebee4fcab24db2a04d562618

✔️ ansible-galaxy-importer SUCCESS in 4m 11s
✔️ build-ansible-collection SUCCESS in 12m 47s
✔️ ansible-test-splitter SUCCESS in 5m 03s
✔️ integration-amazon.aws-1 SUCCESS in 8m 55s
Skipped 43 jobs

@taehopark32 taehopark32 changed the title [WIP] Lambda execute stack trace should be not formatted with extra space Lambda execute stack trace should be not formatted with extra space Jun 21, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/6a8d73d3bd70482e8a9f94d5d3326e5a

✔️ ansible-galaxy-importer SUCCESS in 4m 52s
✔️ build-ansible-collection SUCCESS in 12m 48s
✔️ ansible-test-splitter SUCCESS in 5m 04s
✔️ integration-amazon.aws-1 SUCCESS in 12m 58s
Skipped 43 jobs

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/796410af95d34a2ebfbd690ce3b53e60

✔️ ansible-galaxy-importer SUCCESS in 4m 47s
✔️ build-ansible-collection SUCCESS in 14m 21s
✔️ ansible-test-splitter SUCCESS in 5m 01s
✔️ integration-amazon.aws-1 SUCCESS in 12m 40s
Skipped 43 jobs

@alinabuzachis alinabuzachis added backport-6 PR should be backported to the stable-6 branch backport-5 PR should be backported to the stable-5 branch labels Jun 22, 2023
Comment on lines 268 to 272
"trace": "\n".join(
[
" ".join([str(x) for x in line]) # cast line numbers to strings
for line in results.get("output", {}).get("stackTrace", [])
list(results.get("output", {}).get("stackTrace", []))
]
),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can just be replaced with:

"trace": "\n".join(results.get("output", {}).get("stackTrace", []))

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, worth noting that [i for i in somelist] is different than [list(somelist)] as the latter will produce a nested list.

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/8ff5e7ace6734e6a8dd36cf879736bb8

ansible-galaxy-importer ERROR Failed to update project ansible-collections/amazon.aws in 0s
✔️ build-ansible-collection SUCCESS in 12m 33s
✔️ ansible-test-splitter SUCCESS in 4m 41s
✔️ integration-amazon.aws-1 SUCCESS in 10m 27s
Skipped 43 jobs

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/6681f0b7a84e4be7a6bfcece92a6b5f6

✔️ ansible-galaxy-importer SUCCESS in 4m 11s
✔️ build-ansible-collection SUCCESS in 13m 48s
✔️ ansible-test-splitter SUCCESS in 4m 57s
✔️ integration-amazon.aws-1 SUCCESS in 9m 12s
Skipped 43 jobs

@alinabuzachis alinabuzachis added the mergeit Merge the PR (SoftwareFactory) label Jun 27, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

https://ansible.softwarefactory-project.io/zuul/buildset/a69d2af65d2d49138a7f7cd106fc74f2

✔️ ansible-galaxy-importer SUCCESS in 4m 23s
✔️ build-ansible-collection SUCCESS in 12m 55s
✔️ ansible-test-splitter SUCCESS in 5m 13s
integration-amazon.aws-1 FAILURE in 8m 13s
Skipped 43 jobs

@gravesm
Copy link
Member

gravesm commented Jun 27, 2023

We should be able to regate this when #1625 is merged.

@gravesm
Copy link
Member

gravesm commented Jun 27, 2023

regate

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/472ae54f64fd47008d63e807e4462169

✔️ ansible-galaxy-importer SUCCESS in 4m 36s
✔️ build-ansible-collection SUCCESS in 12m 49s
✔️ ansible-test-splitter SUCCESS in 5m 11s
✔️ integration-amazon.aws-1 SUCCESS in 10m 30s
Skipped 43 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 271523e into ansible-collections:main Jun 27, 2023
@patchback
Copy link

patchback bot commented Jun 27, 2023

Backport to stable-5: 💔 cherry-picking failed — conflicts found

❌ Failed to cleanly apply 271523e on top of patchback/backports/stable-5/271523ea97f73f0e4c5a027eac4f4fc72f4b7093/pr-1615

Backporting merged PR #1615 into main

  1. Ensure you have a local repo clone of your fork. Unless you cloned it
    from the upstream, this would be your origin remote.
  2. Make sure you have an upstream repo added as a remote too. In these
    instructions you'll refer to it by the name upstream. If you don't
    have it, here's how you can add it:
    $ git remote add upstream https://github.com/ansible-collections/amazon.aws.git
  3. Ensure you have the latest copy of upstream and prepare a branch
    that will hold the backported code:
    $ git fetch upstream
    $ git checkout -b patchback/backports/stable-5/271523ea97f73f0e4c5a027eac4f4fc72f4b7093/pr-1615 upstream/stable-5
  4. Now, cherry-pick PR Lambda execute stack trace should be not formatted with extra space #1615 contents into that branch:
    $ git cherry-pick -x 271523ea97f73f0e4c5a027eac4f4fc72f4b7093
    If it'll yell at you with something like fatal: Commit 271523ea97f73f0e4c5a027eac4f4fc72f4b7093 is a merge but no -m option was given., add -m 1 as follows instead:
    $ git cherry-pick -m1 -x 271523ea97f73f0e4c5a027eac4f4fc72f4b7093
  5. At this point, you'll probably encounter some merge conflicts. You must
    resolve them in to preserve the patch from PR Lambda execute stack trace should be not formatted with extra space #1615 as close to the
    original as possible.
  6. Push this branch to your fork on GitHub:
    $ git push origin patchback/backports/stable-5/271523ea97f73f0e4c5a027eac4f4fc72f4b7093/pr-1615
  7. Create a PR, ensure that the CI is green. If it's not — update it so that
    the tests and any other checks pass. This is it!
    Now relax and wait for the maintainers to process your pull request
    when they have some cycles to do reviews. Don't worry — they'll tell you if
    any improvements are necessary when the time comes!

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@patchback
Copy link

patchback bot commented Jun 27, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/271523ea97f73f0e4c5a027eac4f4fc72f4b7093/pr-1615

Backported as #1628

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jun 27, 2023
…1615)

Lambda execute stack trace should be not formatted with extra space

SUMMARY

Fixes #1497
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

plugins/modules/lambda_execute.py
ADDITIONAL INFORMATION

Reviewed-by: Jill R
Reviewed-by: Bikouo Aubin
Reviewed-by: Alina Buzachis
Reviewed-by: Mike Graves <[email protected]>
(cherry picked from commit 271523e)
@github-actions
Copy link

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Jun 30, 2023
…nsible-collections#1615)

Lambda execute stack trace should be not formatted with extra space

SUMMARY

Fixes ansible-collections#1497
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

plugins/modules/lambda_execute.py
ADDITIONAL INFORMATION

Reviewed-by: Jill R
Reviewed-by: Bikouo Aubin
Reviewed-by: Alina Buzachis
Reviewed-by: Mike Graves <[email protected]>
(cherry picked from commit 271523e)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jun 30, 2023
…1615) (#1634)

[manual backport stable-5] Lambda execute stack trace should be not formatted with extra space 

…#1615)
Lambda execute stack trace should be not formatted with extra space
SUMMARY
Fixes #1497
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
plugins/modules/lambda_execute.py
ADDITIONAL INFORMATION
Reviewed-by: Jill R
Reviewed-by: Bikouo Aubin
Reviewed-by: Alina Buzachis
Reviewed-by: Mike Graves [email protected]
(cherry picked from commit 271523e)
SUMMARY


ISSUE TYPE


Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Mike Graves <[email protected]>
Reviewed-by: Helen Bailey <[email protected]>
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jul 3, 2023
…1615) (#1628)

[PR #1615/271523ea backport][stable-6] Lambda execute stack trace should be not formatted with extra space

This is a backport of PR #1615 as merged into main (271523e).
SUMMARY


Fixes #1497
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

plugins/modules/lambda_execute.py
ADDITIONAL INFORMATION

Reviewed-by: Helen Bailey <[email protected]>
Reviewed-by: Alina Buzachis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-5 PR should be backported to the stable-5 branch backport-6 PR should be backported to the stable-6 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lambda execute stack trace f o r m a t t e d w i t h e x t r a s p a c e
5 participants